package com.qf.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.entity.dto.Module;
import com.qf.entity.vo.JqueryTreeList;
import com.qf.mapper.ModuleMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ModuleService extends ServiceImpl<ModuleMapper,Module>{
   @Transactional(readOnly = true)
    public List<JqueryTreeList> getJqueryTreeList(Long id) {
        return this.baseMapper.getJqueryTreeList(id);
    }

    @Transactional(readOnly = true)
    public List<Module> getModuleListByAdminId(Long id) {
       return this.baseMapper.getByModuleListByAdminId(id);
    }

}
